#include<stdio.h>

void main()
{
	int num1, num2, res;
	char oper;

	printf("input num operator num\n");
	scanf("%d%c%d",&num1, &oper, &num2);
	switch(oper)
	{
		case '+':res = num1 + num2; break;
		case '-':res = num1 - num2; break;
		case '*':res = num1 * num2; break;
		case '/':res = num1 / num2; break;
		case '%':res = num1 % num2; break;
		default:break;
	}
	printf("res=%d\n",res);
}
